package com.founder.gateway.system.consts;

import org.setu.framework.exception.SetuErrorCode;

/**
 *
 */
public class ApiSetuErrorCode extends SetuErrorCode {
    public static final SetuErrorCode API_AUTHENTICATION_MODE_UNKNOWN = new ApiSetuErrorCode(-1101, "未知认证模式");
    public static final SetuErrorCode API_AUTHENTICATION_BASIC_INVALID = new ApiSetuErrorCode(-1102, "basic 无效！");
    public static final SetuErrorCode API_AUTHENTICATION_TOKEN_INVALID = new ApiSetuErrorCode(-1102, "token 无效，请重新授权！");
    public static final SetuErrorCode API_AUTHENTICATION_USER_INVALID = new ApiSetuErrorCode(-1103, "用户不存在或者被禁用！");
    public static final SetuErrorCode API_AUTHENTICATION_UNAUTHORIZED = new ApiSetuErrorCode(-1104, "你无权访问这个接口！");

    public static final SetuErrorCode API_REQUEST_PARAM_VERIFY = new ApiSetuErrorCode(-1201, "字段校验不通过");
    public static final SetuErrorCode API_REQUEST_GXDW_VERIFY = new ApiSetuErrorCode(-1202, "管辖单位校验不通过");
    public static final SetuErrorCode API_REQUEST_PARAM_HANDLE = new ApiSetuErrorCode(-1203, "字段处理出错");


    public static final SetuErrorCode API_SENTINEL_BLOCK = new ApiSetuErrorCode(-1301, "已到达限制的并发数，请稍后再试！");


    public static final SetuErrorCode API_RESPONSE_PARAM_TRANSFER = new ApiSetuErrorCode(-1401, "结果转换异常！");


    public static final SetuErrorCode API_PROTOCOL_URL_NULL = new ApiSetuErrorCode(-1501, "url 不能为空！");
    public static final SetuErrorCode API_PROTOCOL_URL_VERIFY = new ApiSetuErrorCode(-1502, "url 格式错误！");
    public static final SetuErrorCode API_PROTOCOL_REQUEST_TRANSFER = new ApiSetuErrorCode(-1503, "请求协议转换异常！");
    public static final SetuErrorCode API_PROTOCOL_RESPONSE_TRANSFER = new ApiSetuErrorCode(-1504, "返回协议转换异常！");
    public static final SetuErrorCode API_PROTOCOL_UNKNOWN = new ApiSetuErrorCode(-1505, "未知协议！");


    public static final SetuErrorCode API_REQUEST_UNSUPPORTED = new ApiSetuErrorCode(-1601, "不支持的方法");


    public static final SetuErrorCode API_AUTOMATIC_ERROR = new ApiSetuErrorCode(-1701, "调用失败");

    private ApiSetuErrorCode(int errorCode, String errorMsg) {
        super(errorCode, errorMsg);
    }

    @Override
    public int registerErrorCode() {
        return -10;
    }
}
